package com.zkyc.framework.website.client;

import com.zkyc.framework.common.constant.Constant;
import com.zkyc.framework.common.vo.ResultVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Service
@FeignClient(value = Constant.SERVICE_USER, contextId = "roleService", fallback = RoleServiceFallBack.class)
public interface RoleClient {

    @GetMapping("role/addWebsiteRightList")
    ResultVO<?> addWebsiteRole(@RequestParam Integer websiteId, @RequestParam String websiteName,@RequestParam String userId);

    @GetMapping("role/getDataRight")
    String getDataRight(@RequestParam String websiteId, @RequestParam String userId);
}

